package petertel.pbx.utils;

import java.util.ArrayList;
import java.util.List;

import petertel.pbx.connector.Executor;

public class ConfigWriter {

	public static void write(String string, ConfigItem config) {
		List<ConfigItem> all = new ArrayList<ConfigItem>();
		config.getAll(all);
		GenericConfigWriter.write(new Executor(), all,
				"/etc/asterisk/extensions.conf");
	}

}
